package gmed;


import java.rmi.server.*;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;



public class server {
	public static void main(String args[]){
		gestao g = new gestao_impl();
        try {
        	gestao stub =
           		(gestao) UnicastRemoteObject.exportObject(g, 0);
                Registry registry = LocateRegistry.getRegistry();
                registry.rebind("GestaoReceitas", stub);
		} catch (RemoteException e) {
			e.printStackTrace();
        }
	}
}

